package com.sky.service;

import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageBean;

import java.util.List;

public interface EmployeeService {

    // 员工登录
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    // 员工列表分页查询
    PageBean findPage(EmployeePageQueryDTO employeePageQueryDTO);

    // 员工新增
    void save(Employee employee);

    //回显->根据主键id查询
    Employee findById(Long id);

    //修改->更新员工
    void update(Employee employee);
}
